﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace BDSim
{
    public struct EOPData
    {
        public UTCTime time;
        public double MJD;
        public double xpole;
        public double ypole;
        public double ut1_utc;
        public int leapSec;//GPST-UTC的差值
        //EOPData()
        //{
        //    time = new UTCTime();
        //    MJD = 0.0;
        //    xpole = 0.0;
        //    ypole = 0.0;
        //    ut1_utc = 0.0;
        //    leapSec = 0;
        //}
    };

    /// <summary>
    /// 计算电离层输入
    /// </summary>
    struct CalIon_Input
    {
        public UTCTime Time;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
        public double[] SatECFPos; 	//卫星位置
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
        public double[] UsePos;        //用户位置
    }

    /// <summary>
    /// 计算电离层输出
    /// </summary>
    struct CalIon_Output
    {
        public double VTEC;              //垂直电子总量
        public double Zenith;            //天顶距
    }
}
